home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 January / macformat-020.iso / Shareware City / Developers / Commander Sets / 4D MountPack / 4D MountPack.rsrc / TEXT_278_ MP Eject.txt < prev    next >
Encoding:
Text File  |  1994-09-14  |  1.9 KB  |  40 lines

  1. MP¬†Eject (volname) ->  err
  2.  
  3. Ejects or unmounts any currently mounted volume depending if it's ejectable or not.
  4.  
  5. err             integer       returns the error which occured. A value of 
  6.                                         zero indicates no error occured. See below 
  7.                                         for a list of possible errors.
  8.  
  9. volname      string (max. 27)      contains the volume name you want to 
  10.                                         eject. Actually this may be a full path to a 
  11.                                         file or folder (max. length 255). As long as it 
  12.                                         starts with a volume name it will be 
  13.                                         succesfully ejected or unmounted. If the file 
  14.                                         or folder does not exist no error will be 
  15.                                         returned.
  16.  
  17.  
  18. The volume with the System Folder or with the Virtual Memory storage file can not be ejected and, when trying to do so, will return an error. You can call this function for every volume you want. If it is used with a non-ejectable volume it will be unmounted instead of ejected.
  19.  
  20. Use this function to unmount any volume you don't know for sure it's ejectable or not.
  21.  
  22.  
  23. Note: The length specified with a string is the maximum length possible. The external does not test for the size of the variables. Please, declare the string you use to the correct length. Use of these commands inside the Debugger window is not recommended.
  24.  
  25.  
  26. Possible errors:
  27. ¬†¬†¬†¬†0¬†¬†No Error
  28. ¬†¬†-35¬†¬†Volume with that name not found
  29. ¬†¬†-36¬†¬†I/O error
  30. ¬†¬†-37¬†¬†Bad volume name
  31. ¬†¬†-47¬†¬†One or more files are open on that volume
  32. ¬†¬†-50¬†¬†Parameter error (no volume name passed)
  33. ¬†¬†-55¬†¬†Volume off-line or ejected
  34. ¬†¬†-58¬†¬†External File system error; function not available for that  
  35.                   volume
  36.  
  37. And other errors Apple hasn't told me about.
  38.  
  39.  
  40.